package cn.wolfcode.luowowo.website.controller;

import cn.wolfcode.luowowo.common.util.AjaxResult;
import cn.wolfcode.luowowo.member.service.IUserInfoService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class VerifyCodeController {

    @Reference //不同服务间引入
    private IUserInfoService userInfoServi;

    @RequestMapping("/sendVerifyCode")
    @ResponseBody
    public Object sendVerifyCode(String  phone) {
        userInfoServi.sendVerifyCode(phone);
        return new AjaxResult();
    }
}
